import { createApp } from "vue";

import App from "./App.vue";
import router from "./router";
const app = createApp(App);

/*
  持久化存储 localStorage
*/
// 1
import { createPinia } from "pinia";
import piniaPersist from "pinia-plugin-persist"; //持久化存1
// 2
const pinia = createPinia();
pinia.use(piniaPersist); // 持久化存2

// 3

app.use(pinia);

app.use(router);
app.mount("#app");
